import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
import index from '../views/index.vue'
import students from "../views/pages/students/index.vue"
import otherZone from "../views/pages/otherZone/index.vue"
import space from "../views/pages/space/index.vue"
import message from "../views/pages/message/index.vue"
import personal from "../views/pages/personal/index.vue"
import TheClass from "../views/pages/class/index.vue"
import Research from "../views/pages/research/index.vue"
import School from "../views/pages/school/index.vue"

Vue.use(VueRouter)

const routes = [{
        path: '/login',
        name: 'login',
        component: login,
        meta: {
            alive: true
        }
    },
    {
        path: '/',
        name: 'index',
        redirect: "/index",
        meta: {
            alive: true
        }
    },
    {
        path: '/index',
        name: 'index',
        component: index,
        meta: {
            alive: true
        }
    },
    // 个人空间
    {
        path: '/space',
        name: 'space',
        component: space,
        meta: {
            alive: true
        }
    },
    {
        path: '/message',
        name: 'message',
        component: message,
        meta: {
            alive: true
        }
    },
    // 个人中心
    {
        path: '/personal',
        name: '/personal',
        component: personal,
        children: [{
            path: '/personal',
            redirect: '/personal/personalData',
            meta: {
                alive: true
            }
        }, {
            // 个人资料
            path: 'personalData',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/personalData'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 修改头像
            path: 'updateAvatar',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/updateAvatar'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 修改密码
            path: 'updatePassword',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/updatePassword'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 我的班级
            path: 'updateClass',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/updateClass'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 关联家长
            path: 'relationParents',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/relationParents'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 关联孩子
            path: 'relationChild',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/relationChild'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 隐私设置
            path: 'updatePrivacy',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/updatePrivacy'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 空间统计
            path: 'spaceStatistics',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/spaceStatistics'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 装扮记录
            path: 'costumeRecord',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/costumeRecord'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 账号安全
            path: 'accountSecurity',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/accountSecurity'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 机构信息
            path: 'updateMechanism',
            name: '/personal',
            component: resolve => require(['@v/pages/personal/updateMechanism'], resolve),
            meta: {
                alive: true
            }
        }]
    },

    {
        path: "*",
        redirect: '/',
        name: 'notFound',
        hidden: true
    },
    // 学生端
    {
        path: "/students",
        name: "students",
        component: students,
        meta: {
            alive: true
        },
        children: [{
                path: '/students',
                redirect: '/students/studentsHomePage',
                meta: {
                    alive: true
                }
            }, {
                // 个人主页
                path: "studentsHomePage",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentsHomePage'], resolve),
                meta: {
                    alive: true
                }
            }, {
                // 学习空间
                path: "learningSpace",
                name: '/students',
                component: resolve => require(['@v/pages/students/learningSpace'], resolve),
                meta: {
                    alive: true
                }
            }, {
                // 文章
                path: "articleMain",
                name: '/students',
                component: resolve => require(['@v/pages/students/articleMain'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 文章阅读
                path: "readingArticle",
                name: "/students",
                component: resolve => require(['@v/pages/readingArticle/readingArticles'], resolve),
                meta: {
                    alive: true
                }
            },
            // 学生资源
            {
                path: "studentsResources",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentsResources'], resolve),
                meta: {
                    alive: true
                }
            },
            // 任务
            {
                path: "studentTask",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentTask'], resolve),
                meta: {
                    alive: true
                }
            },
            // 提问答疑
            {
                path: "studentQuestions",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentQuestions'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 提问
                path: "studentPutQuestions",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentPutQuestions'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 答疑
                path: "studentAnswering",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentAnswering'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 相册
                path: "studentAlbum",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentAlbum'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 关注动态
                path: "studentDynamic",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentDynamic'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 班级动态
                path: "classDynamic",
                name: '/students',
                component: resolve => require(['@v/pages/students/classDynamic'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 学校动态
                path: "schoolDynamic",
                name: '/students',
                component: resolve => require(['@v/pages/students/schoolDynamic'], resolve),
                meta: {
                    alive: true
                }
            }, {
                // 关注
                path: "studentFollow",
                name: '/students',
                component: resolve => require(['@v/pages/students/studentFollow'], resolve),
                meta: {
                    alive: true
                },
                children: [
                    // 关注
                    {
                        path: "follow",
                        name: "follow",
                        component: resolve => require(['@c/studentFollow/follow'], resolve),
                    },
                    // 好友
                    {
                        path: "friend",
                        name: "friend",
                        component: resolve => require(['@c/studentFollow/friend'], resolve),
                    },
                    // 粉丝
                    {
                        path: "fans",
                        name: "fans",
                        component: resolve => require(['@c/studentFollow/fans'], resolve),
                    },
                    // 黑名单
                    {
                        path: "blackName",
                        name: "blackName",
                        component: resolve => require(['@c/studentFollow/blackNameModel'], resolve),
                    },
                    // 添加好友
                    {
                        path: "addFriend",
                        name: "addFriend",
                        component: resolve => require(['@c/studentFollow/addFriend'], resolve),
                    },
                    // 推荐好友
                    {
                        path: "recommendFriend",
                        name: "recommendFriend",
                        component: resolve => require(['@c/studentFollow/recommendFriend'], resolve),
                    },
                ]
            }
        ]
    },
    // 他人空间 
    {
        path: "/otherZone",
        name: "otherZone",
        component: otherZone,
        meta: {
            alive: true
        },
        children: [{
                path: '/otherZone',
                redirect: '/otherZone/otherZoneHomePage',
                meta: {
                    alive: true
                }
            }, {
                // 他人主页
                path: "otherZoneHomePage",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/otherZoneHomePage'], resolve),
                meta: {
                    alive: true
                }
            }, {
                // 学习空间
                path: "learningSpace",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/learningSpace'], resolve),
                meta: {
                    alive: true
                }
            }, {
                // 文章
                path: "articleMain",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/articleMain'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 文章阅读
                path: "readingArticle",
                name: "/otherZone",
                component: resolve => require(['@v/pages/readingArticle/readingArticles'], resolve),
                meta: {
                    alive: true
                }
            },
            // 学生资源
            {
                path: "otherZoneResources",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/otherZoneResources'], resolve),
                meta: {
                    alive: true
                }
            },
            // 提问答疑
            {
                path: "otherZoneQuestions",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/otherZoneQuestions'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 提问
                path: "otherZonePutQuestions",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/otherZonePutQuestions'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 答疑
                path: "otherZoneAnswering",
                name: '/otherZone',
                component: resolve => require(['@v/pages/students/studentAnswering'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 相册
                path: "otherZoneAlbum",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/otherZoneAlbum'], resolve),
                meta: {
                    alive: true
                }
            },
            {
                // 关注
                path: "otherZoneFollow",
                name: '/otherZone',
                component: resolve => require(['@v/pages/otherZone/otherZoneFollow'], resolve),
                meta: {
                    alive: true
                },
                children: [
                    // 关注
                    {
                        path: "follow",
                        name: "follow",
                        component: resolve => require(['@c/studentFollow/follow'], resolve),
                    },
                    // 粉丝
                    {
                        path: "fans",
                        name: "fans",
                        component: resolve => require(['@c/studentFollow/fans'], resolve),
                    },
                    // 黑名单
                    {
                        path: "blackName",
                        name: "blackName",
                        component: resolve => require(['@c/studentFollow/blackNameModel'], resolve),
                    },
                    // 添加好友
                    {
                        path: "addFriend",
                        name: "addFriend",
                        component: resolve => require(['@c/studentFollow/addFriend'], resolve),
                    },
                    // 推荐好友
                    {
                        path: "recommendFriend",
                        name: "recommendFriend",
                        component: resolve => require(['@c/studentFollow/recommendFriend'], resolve),
                    },
                ]
            }
        ]
    },
    // 班级
    {
        path: "/class",
        name: "class",
        component: TheClass,
        meta: {
            alive: true
        },
        children: [{
            path: '/class',
            redirect: 'classHomePage',
            meta: {
                alive: true
            }
        }, {
            // 班级首页
            path: "classHomePage",
            name: "/class",
            component: resolve => require(['@v/pages/class/classHomePage'], resolve),
            meta: {
                alive: true
            }
        }, {
            // 走进班级
            path: "classWentInto",
            name: "/class",
            component: resolve => require(['@v/pages/class/classWentInto'], resolve),
            meta: {
                alive: true
            },
            children: [{
                    path: '/class/classWentInto',
                    redirect: 'classPaper',
                    meta: {
                        alive: true
                    }
                }, {
                    // 班级文章
                    path: "classPaper",
                    name: "/classPaper",
                    // component: resolve => require(['@v/pages/class/classWentInto'], resolve),
                    component: resolve => require(['@v/pages/classWentInto/classPaper'], resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 班级相册
                    path: "classPhotoAlbum",
                    name: "/classPaper",
                    // component: resolve => require(['@v/pages/classWentInto/classPhotoAlbum'], resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 教师风貌
                    path: "teacherStyle",
                    name: "/classPaper",
                    // component: resolve => require(['@v/pages/classWentInto/teacherStyle'], resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 学生风采
                    path: "studentElegant",
                    name: "/classPaper",
                    // component: resolve => require(['@v/pages/classWentInto/studentElegant'], resolve),
                    meta: {
                        alive: true
                    },
                }
                // 班级咨讯
                , {
                    // 班级公告
                    path: "classBulletin",
                    name: "/classBulletin",
                    // component: resolve => require(['@v/pages/classInformation/classBulletin'], resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 班级新闻
                    path: "classNews",
                    name: "/classBulletin",
                    // component: resolve => require(['@v/pages/classInformation/classNews'], resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 班级寄语
                    path: "message",
                    name: "/classBulletin",
                    // component: resolve => require(['@v/pages/classInformation/classNews'], resolve),
                    meta: {
                        alive: true
                    },
                },

                // 班级活动
                {
                    // 每周班会
                    path: "classMeeting",
                    name: "/classMeeting",
                    // component: resolve => require(['@v/pages/classActivities/classMeeting'], resolve),
                    meta: {
                        alive: true
                    },
                },
                {
                    // 班级记事
                    path: "classRemember",
                    name: "/classMeeting",
                    // component: resolve => require(['@v/pages/classActivities/classRemember'], resolve),
                    meta: {
                        alive: true
                    },
                },
                // 学生天地
                {
                    // 国旗下的讲话
                    path: "nationalFlagSpeech",
                    name: "/nationalFlagSpeech",
                    // component: resolve => require(['@v/pages/classStudentsWorld/nationalFlagSpeech'], resolve),
                    meta: {
                        alive: true
                    },
                },
                {
                    // 学生荣誉
                    path: "studentsHonor",
                    name: "/nationalFlagSpeech",
                    // component: resolve => require(['@v/pages/classStudentsWorld/studentsHonor'], resolve),
                    meta: {
                        alive: true
                    },
                }
            ]
        }, {
            // 班级资源
            path: "classResources",
            name: "/class",
            component: resolve => require(['@v/pages/class/classResources'], resolve),
            meta: {
                alive: true
            },
        }]
    },

    // 学校
    {
        path: "/school",
        name: "school",
        component: School,
        meta: {
            alive: true
        },
        children: [{
            path: '/school',
            redirect: 'schoolHomePage',
            meta: {
                alive: true
            }
        }, {
            // 学校首页
            path: "schoolHomePage",
            name: "/school",
            component: resolve => require(['@v/pages/school/schoolHomePage'], resolve),
            meta: {
                alive: true
            },
        }, {
            // 学校概括
            path: "schoolSummarized",
            name: "/school",
            component: resolve => require(['@v/pages/school/schoolSummarized'], resolve),
            meta: {
                alive: true
            },
            children: [{
                    path: '/school/schoolProfile',
                    redirect: 'schoolProfile',
                    meta: {
                        alive: true
                    }
                }, {
                    // 学校简介
                    path: "schoolProfile",
                    name: "/schoolProfile",
                    component: resolve => require(['@v/pages/schoolSummarized/schoolProfile'], resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 师资队伍
                    path: "schoolTeachersTroop",
                    name: "/schoolProfile",
                    component: resolve => require(['@v/pages/schoolSummarized/schoolTeachersTroop'], resolve),
                    meta: {
                        alive: true,
                        isPicture: true
                    },
                }, {
                    // 学校相册
                    path: "schoolPhotoAlbum",
                    name: "/schoolProfile",
                    component: resolve => require(['@v/pages/schoolSummarized/schoolPhotoAlbum'], resolve),
                    meta: {
                        alive: true,
                        isPicture: true
                    },
                }, {
                    // 学校成果
                    path: "schoolResults",
                    name: "/schoolProfile",
                    // component:resolve => require(['@v/pages/schoolSummarized/schoolResults'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 领导风采
                    path: "schoolLeadership",
                    name: "/schoolProfile",
                    component: resolve => require(['@v/pages/schoolSummarized/schoolLeadership'], resolve),
                    meta: {
                        alive: true,
                        isPicture: true
                    }
                },
                // 教师园地 teachersPost
                {
                    // 教师文章
                    path: "teachersPost",
                    name: "/teachersPost",
                    // component:resolve => require(['@v/pages/schoolTeachersGarden/teachersPost'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 教师荣誉
                    path: "teachersHonor",
                    name: "/teachersPost",
                    // component:resolve => require(['@v/pages/schoolTeachersGarden/teachersHonor'],resolve),
                    meta: {
                        alive: true
                    },
                },

                // 教育研究 researchActivity
                {
                    // 教研活动
                    path: "researchActivity",
                    name: "/researchActivity",
                    // component:resolve => require(['@v/pages/schoolEducationResearch/researchActivity'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 教学设计
                    path: "schoolDesign",
                    name: "/researchActivity",
                    // component:resolve => require(['@v/pages/schoolEducationResearch/schoolDesign'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 课题研讨
                    path: "topicToDiscuss",
                    name: "/researchActivity",
                    // component:resolve => require(['@v/pages/schoolEducationResearch/topicToDiscuss'],resolve),
                    meta: {
                        alive: true
                    },
                },
                // 党建之窗 partyDynamic
                {
                    // 党建动态
                    path: "partyDynamic",
                    name: "/partyDynamic",
                    // component:resolve => require(['@v/pages/schoolPartyWindow/partyDynamic'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 政治学习
                    path: "politicalStudy",
                    name: "/partyDynamic",
                    // component:resolve => require(['@v/pages/schoolPartyWindow/politicalStudy'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 党员风采
                    path: "partyElegantDemeanour",
                    name: "/partyDynamic",
                    // component:resolve => require(['@v/pages/schoolPartyWindow/partyElegantDemeanour'],resolve),
                    meta: {
                        alive: true,
                        isPicture: true
                    },
                }, {
                    // 工会活动
                    path: "unionActivity",
                    name: "/partyDynamic",
                    // component:resolve => require(['@v/pages/schoolPartyWindow/unionActivity'],resolve),
                    meta: {
                        alive: true
                    },
                },

                // 学生天地 campusLife
                {
                    // 校园生活
                    path: "campusLife",
                    name: "/campusLife",
                    // component:resolve => require(['@v/pages/schoolStudentsHeavens/campusLife'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 学生荣誉
                    path: "studentsHonor",
                    name: "/campusLife",
                    // component:resolve => require(['@v/pages/schoolStudentsHeavens/studentsHonor'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 学生作品册
                    path: "studentPortfolio",
                    name: "/campusLife",
                    // component:resolve => require(['@v/pages/schoolStudentsHeavens/studentPortfolio'],resolve),
                    meta: {
                        alive: true,
                        isPicture: true
                    },
                }, {
                    // 国旗下的讲话
                    path: "speechUnderFlag",
                    name: "/campusLife",
                    // component:resolve => require(['@v/pages/schoolStudentsHeavens/speechUnderFlag'],resolve),
                    meta: {
                        alive: true
                    },
                },

                // 招生信息 admissionsDynamic
                {
                    // 招生动态
                    path: "admissionsDynamic",
                    name: "/admissionsDynamic",
                    // component:resolve => require(['@v/pages/schoolAdmissionsMessage/admissionsDynamic'],resolve),
                    meta: {
                        alive: true
                    },
                }, {
                    // 招生简章
                    path: "admissionsGeneralRules",
                    name: "/admissionsDynamic",
                    // component:resolve => require(['@v/pages/schoolAdmissionsMessage/admissionsGeneralRules'],resolve),
                    meta: {
                        alive: true
                    },
                },
            ]
        }, {
            // 学校资源
            path: "schoolResources",
            name: "/school",
            component: resolve => require(['@v/pages/school/schoolResources'], resolve),
            meta: {
                alive: true
            }
        }, ]
    },


    // 教研
    {
        path: "/research",
        name: "research",
        component: Research,
        meta: {
            alive: true
        },
        children: [{
            path: '/research',
            redirect: 'researchOther',
            meta: {
                alive: true
            }
        }, {
            // 教研空间
            path: "researchOther",
            name: "/research",
            component: resolve => require(['@v/pages/research/researchOther'], resolve),
            meta: {
                alive: true
            },
            children: [{
                    path: '/research/researchOther',
                    redirect: 'researchOtherHome',
                    meta: {
                        alive: true
                    }
                },
                { // 教研首页
                    path: 'researchOtherHome',
                    name: 'researchOtherHome',
                    component: resolve => require(['@v/pages/researchOther/researchOtherHome'], resolve),
                    meta: {
                        alive: true
                    }
                },
                { // 教研阅读内容详情
                    path: 'researchReadDetails',
                    name: 'researchReadDetails',
                    component: resolve => require(['@v/pages/researchOther/researchReadDetails'], resolve),
                    meta: {
                        alive: true
                    }
                },
                { // 教研组
                    path: 'researchOtherGroup',
                    name: 'researchOtherGroup',
                    component: resolve => require(['@v/pages/researchOther/researchOtherGroup'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研相册
                    path: 'researchAlbum',
                    name: 'researchAlbum',
                    component: resolve => require(['@v/pages/researchOther/researchAlbum'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研活动
                    path: 'researchOtherActivity',
                    name: 'researchOtherActivity',
                    component: resolve => require(['@v/pages/researchOther/researchOtherActivity'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研成果
                    path: 'researchachIevements',
                    name: 'researchachIevements',
                    component: resolve => require(['@v/pages/researchOther/researchachIevements'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研资源
                    path: 'researchResources',
                    name: 'researchResources',
                    component: resolve => require(['@v/pages/researchOther/researchResources'], resolve),
                    meta: {
                        alive: true
                    }
                }
            ]
        }, { // 教研组详情
            path: "researchGroup",
            name: "researchGroup",
            component: resolve => require(['@v/pages/research/researchGroup'], resolve),
            meta: {
                alive: true
            },
            children: [{
                    path: '/research/researchGroup',
                    redirect: 'researchGroupHome',
                    mata: {
                        alive: true
                    }
                }, { // 教研组首页
                    path: "researchGroupHome",
                    name: "researchGroupHome",
                    component: resolve => require(['@v/pages/researchGroup/researchGroupHome'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研组成员
                    path: "researchGroupMember",
                    name: "researchGroupMember",
                    component: resolve => require(['@v/pages/researchGroup/researchGroupAlbum'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研组相册
                    path: "researchGroupAlbum",
                    name: "researchGroupAlbum",
                    component: resolve => require(['@v/pages/researchGroup/researchGroupAlbum'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研组活动
                    path: "researchGroupActivity",
                    name: "researchGroupActivity",
                    component: resolve => require(['@v/pages/researchGroup/researchGroupActivity'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研组成果
                    path: "researchGroupIevements",
                    name: "researchGroupIevements",
                    component: resolve => require(['@v/pages/researchGroup/researchGroupIevements'], resolve),
                    meta: {
                        alive: true
                    }
                }, { // 教研组资源
                    path: "researchGroupResources",
                    name: "researchGroupResources",
                    component: resolve => require(['@v/pages/researchGroup/researchGroupResources'], resolve),
                    meta: {
                        alive: true
                    }
                },
                { // 教研组阅读内容详情
                    path: 'researchReadDetails',
                    name: 'researchReadDetails',
                    component: resolve => require(['@v/pages/researchOther/researchReadDetails'], resolve),
                    meta: {
                        alive: true
                    }
                },
            ]
        }]
    }
]

const router = new VueRouter({

    //开发环境
    mode: 'hash',
    base: '',
    //打包环境
    // mode: 'hash',
    // base: '/person/',
    routes
})

export default router